<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="include::header">
</head>

<body  class="table-responsive">
<div th:replace="include :: logintop"></div>
<div th:replace="include::header1">
</div>
<div class="main w m-b-10">
    <!--帮助中心左侧菜单-->
    <div th:replace="include :: menu"></div>

    <!--&lt;!&ndash;end&ndash;&gt;-->
    <!--帮助中心右侧内容-->
    <div class="right_con">
        <div class="position"><a  class="home" href="#">首页</a> <a  href="/member/center">用户注册信息</a></div>
        <div class="rconbox">
            <h3 >用户注册信息</h3>
            <div class="rconbox_con">
                <style type="text/css">
                    .msg {
                        color: #FF3300
                    }

                    .msg2 {
                        color: #006600
                    }

                    .STYLE1 {
                        color: #FF3300;
                        font-weight: bold;
                    }
                </style>

                <script language="javascript" type="text/javascript">
                    var li_ok = '<img src=http://oss.114ic.com/Img/check_right.gif border=0> ';  //用于显示正确时的图标
                    var li_err = '<img src=http://oss.114ic.com/Img/check_error.gif border=0> '; //用于显示错误时的图标
                    var name_re = false;

                    var name_use;
                    var mail_use;

                    //ajax密码强度验证
                </script>
                <script src="/js/appjs/front/memberupdate.js"></script>


                <form method="post" id="regform" action="/member/update">
                    <input name="id" id="id" type="hidden" th:value="${user.id}" >
                    <table class="table  table-striped table-hover">
                        <tbody>
                        <tr>
                            <td align="right">基本信息</td>
                            <td align="left">　</td>
                            <td align="left">　</td>
                            <td align="left">　</td>
                        </tr>
                        <tr>
                            <td width="18%" align="right" >用户账号：</td>
                            <td width="12%">
                                <span  class="form-control-static" th:text="${user.userAccount}">账号</span>
                            </td>
                            <td width="4%"></td>
                            <td width="66%" id="name_re_m"></td>
                        </tr>
                        <tr>
                            <td width="18%" align="right">用户姓名：</td>
                            <td width="12%">
                                <input class="form-control" name="userName" th:value="${user.userName}" id="userName" type="text" maxlength="20" onblur="isUserName()" size="19">
                            </td>
                            <td width="4%"><span class="STYLE1" id="userName_re">*</span></td>
                            <td width="66%" id="userName_re_m"></td>
                        </tr>
                        <tr>
                            <td align="right">手机：</td>
                            <td><input class="form-control" name="mobile" id="mobile" th:value="${user.mobile}" type="text" size="30" onblur="isMobile()"></td>
                            <td><span class="STYLE1" id="mobile_re">*</span></td>
                            <td width="66%" id="mobile_re_m"></td>
                        </tr>
                        <tr>
                            <td align="right">传真：</td>
                            <td><input class="form-control" name="faxs" id="faxs" th:value="${user.faxs}" type="text" size="30"></td>
                            <td>   </td>
                            <td> 　</td>
                        </tr>
                        <tr>
                            <td align="right">电话：</td>
                            <td>
                                <input class="form-control" name="telephone" type="text" id="telephone"  th:value="${user.telephone}" size="30"></td>
                            <td>  </td>
                            <td>　</td>
                        </tr>
                        <tr>
                            <td align="right">电子邮箱：</td>
                            <td>
                                <input class="form-control" name="email" id="email" type="text" maxlength="80"  th:value="${user.email}"  onblur="isEmail()" size="30">
                            </td>
                            <td><span class="STYLE1" id="email_re">*</span></td>
                            <td id="email_re_m">取回密码和修改密码时使用，请您正确填写。</td>
                        </tr>
                        <tr>
                            <td align="right">联系QQ：</td>
                            <td><input class="form-control" name="qq" id="qq" type="text"  th:value="${user.qq}" size="30"></td>
                            <td><span class="STYLE1" id="qq_re"></span></td>
                            <td id="qq_re_m">　</td>
                        </tr>
                        <tr>
                            <td align="right">微信：</td>
                            <td><input class="form-control" name="wechat" id="wechat"  th:value="${user.wechat}" type="text" size="30"></td>
                            <td><span class="STYLE1" id="qq_re"></span></td>
                            <td id="qq_re_m">　</td>
                        </tr>

                        <tr  id="probince">
                            <td align="right" height="25">省份：</td>
                            <td width="30%">
                                <select  class="form-control" name="city" id="city" th:field="*{user.city}">
                                <option value="">请选择</option>
                                <option value="北京">北京</option>
                                <option value="深圳">深圳</option>
                                <option value="广东">广东(不含深圳)</option>
                                <option value="上海">上海</option>
                                <option value="江苏">江苏</option>
                                <option value="四川">四川</option>
                                <option value="浙江">浙江</option>
                                <option value="陕西">陕西</option>
                                <option value="山东">山东</option>
                                <option value="天津">天津</option>
                                <option value="重庆">重庆</option>
                                <option value="黑龙江">黑龙江</option>
                                <option value="吉林">吉林</option>
                                <option value="辽宁">辽宁</option>
                                <option value="内蒙古">内蒙古</option>
                                <option value="河北">河北</option>
                                <option value="河南">河南</option>
                                <option value="新疆">新疆</option>
                                <option value="甘肃">甘肃</option>
                                <option value="宁夏">宁夏</option>
                                <option value="山西">山西</option>
                                <option value="青海">青海</option>
                                <option value="西藏">西藏</option>
                                <option value="湖北">湖北</option>
                                <option value="安徽">安徽</option>
                                <option value="江西">江西</option>
                                <option value="湖南">湖南</option>
                                <option value="贵州">贵州</option>
                                <option value="云南">云南</option>
                                <option value="广西">广西</option>
                                <option value="福建">福建</option>
                                <option value="海南">海南</option>
                                <option value="香港">香港</option>
                                <option value="澳门">澳门</option>
                                <option value="台湾">台湾</option>
                                <option value="其他">其他</option>
                            </select>
                            </td>
                            <td><span class="STYLE1" id="area_re">*</span></td>
                            <td id="area_re_m">请选择区域</td>
                        </tr>
                        <tr>
                            <td align="right">地址：</td>
                            <td colspan="3">
                                <input class="form-control" name="address" type="text" id="address" size="60" th:value="${user.address}"></td>
                        </tr>
                        <tr>
                            <td align="right">公司信息</td>
                            <td colspan="3">
                                　
                            </td>
                        </tr>
                        <tr>
                            <td align="right">公司：</td>
                            <td>
                                <input class="form-control" name="company" type="text" id="company" size="30" th:value="${user.company}" disabled="disabled" onblur="isCompany()">
                            </td>
                            <td><span class="STYLE1" id="company_re"></span></td>
                            <td id="company_re_m">　</td>
                        </tr>
                        <tr>
                            <td align="right">网址：</td>
                            <td colspan="3">
                                <input class="form-control" type="text" name="webSite" id="webSite" th:value="${user.webSite}" size="30"></td>
                        </tr>
                        <tr>
                            <td align="right">公司简介：</td>
                            <td colspan="3">
                                <textarea class="form-control" rows="8" name="companyDesc" th:text="${user.companyDesc}" id="companyDesc" cols="60"></textarea></td>
                        </tr>
                        <tr>
                            <td align="right">注册类型：</td>
                            <td colspan="3" th:switch="${user.memberType}">
                                <label th:case="1">买家</label>
                                <label th:case="2">卖家</label>
                                <label th:case="3">买家和卖家</label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right"> 　</td>
                            <td align="left" colspan="3"><input type="button" onclick="chk_reg()" name="Submit"
                                                                value="修改"></td>
                        </tr>
                        </tbody>
                    </table>
                </form>


            </div>
        </div>
    </div>
    <!--end-->
</div>
<div th:replace="include::foot1">
</div>
<div th:replace="include::foot2">
</div>
<div th:include="include::footer"></div>
</body>
</html>